import 'package:honeypotflutter/net/public_httpResult.dart';
import 'package:honeypotflutter/public/public_total.dart';

class MGModal extends HLTotal {
  /*
  * 网络错误弹框
  * */
  static totalError(dynamic error) {
    if (error == null) {
      return;
    }
    if (error is HttpErrorResult) {
      HttpErrorResult err = error;
      HLTotal.totals(status: err.message, message: err.details);
    }
  }
}
